#include <bits/stdc++.h>
#define PSI pair<string,int>
#define PII pair<int,int>
#define VVI vector<vector<int>>
#define VI vector<int>
#define VS vector<string>

#define PQLI priority_queue<int, vector<int>, less<int>>
#define PQGI priority_queue<int, vector<int>, greater<int>>
#define i64 long long

using namespace std;

const int N = 1e5 + 5;
int ans;
void solve() {
    int a,b;
    cin >> a >> b;
    int n;
    cin >> n;
    int no = 0;
//     cout << a * 2 <<" "  <<  b * 3  << "\n";
    if(a * 2 + b * 3 < n * 2) no = 1;
    if(a * 2  < n && b * 3  < n) no = 1;

    if(a * 2 < n ){
        int t = n - a * 2;
        if(t % 3 != 0) {no = 1;}
    }

    if(b * 3 < n ){
        int t = n - b * 3;
        if(t % 2 != 0) {no = 1;}
    }

    if(no) cout << "NO\n";
    else cout << "YES\n";return;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int T;cin >> T;while(T --)
        solve();
    return 0;
}